import { ApiProperty } from '@nestjs/swagger';

export class RegisterDTO {
  @ApiProperty({ required: true, description: '手机号' })
  phoneNo?: string;

  @ApiProperty({ required: true, description: '密码' })
  pwd?: string;

  @ApiProperty({ required: true, description: '验证密码' })
  verifyPwd?: string;
}

// tslint:disable-next-line: max-classes-per-file
export class LoginTokenDTO {
  @ApiProperty({ required: true, description: '手机号' })
  phoneNo?: string;

  @ApiProperty({ required: true, description: '密码' })
  token?: string;
}

// tslint:disable-next-line: max-classes-per-file
export class LoginSMSDTO {
  @ApiProperty({ required: true, description: '手机号' })
  phoneNo?: string;

  @ApiProperty({ required: true, description: '密码' })
  code?: string;
}
